package com.cskaoyan.service;

import com.cskaoyan.bean.pojo.Order;
import com.cskaoyan.bean.pojo.OrderGoods;
import com.cskaoyan.bean.pojo.User;
import com.cskaoyan.beanwx.bo.OrderBaseBo;
import com.cskaoyan.beanwx.bo.OrderCommentBo;
import com.cskaoyan.beanwx.vo.OrderDetailVo;
import com.cskaoyan.beanwx.vo.OrderGoodsVo;
import com.cskaoyan.beanwx.vo.OrderListVo;
import com.cskaoyan.beanwx.vo.UserIndexVo;

public interface OrderService {
    UserIndexVo queryUserOrder(Integer id);

    OrderListVo queryUserOrderDetail(OrderBaseBo orderBaseBo, User user);

    OrderDetailVo queryOrderByOrderId(User user, Integer orderId);

    Integer changeCancelOrder(User user, Integer orderId);

    Integer changeConfirmOrder(User user, Integer orderId1);

    Integer changeRefundOrder(User user, Integer orderId1);

    Integer changeDeleteOrder(User user, Integer orderId1);

    OrderGoodsVo queryGoodsOrder(Integer orderId, Integer goodsId, User user);

    Integer addComment(OrderCommentBo orderCommentBo, User user);

    Integer changePrepayOrder(User user, Integer orderId);

    /**
     * @author: lsy
     * @title: addOrder
     * @description: 新增一条order
     * @param: [order]
     * @return: int
     */
    int addOrder(Order order);

    int addOrderGoods(OrderGoods orderGoods);

    Order queryOrderById(int orderId1);
}
